package com.group01.community.mapper;

import com.group01.community.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.group01.community.entity.vo.SysMenuVo;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author iuoly
 * @since 2022-07-04
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据用户名字查询三级菜单
     * @param userName
     * @return
     */
    List<SysMenuVo> getMenusByUserName(String userName);

    /**
     * 查询所有菜单列表(模糊查询+多级菜单)
     * @return
     */
    List<SysMenuVo> getMenuList(String menuName,String status);

}
